{% extends 'ShopAdminBundle:Demo:layout.html.twig' %}

{% set pg_title='门票列表' %}

{% block container %}
    <p class="brand-name">品牌名：{{ brand }}</p>

    {% for shop in shop_list %}
        {% if shop.shopProducts | length > 0 %}
            {% for prod in shop.shopProducts %}

                <div class="ticket-item">
                    <div class="left-wrap">
                        <img src="{{ img_prefix }}{{ shop.shopPicture }}"
                             class="ticket-pic outline">
                    </div>
                    <div class="right-wrap">
                        <div class="ticket-title">{{ prod.name }}</div>
                        <div class="ticket-price">
                            <span>￥{{ prod.price }}</span>
                            <span class="market-price">￥{{ prod.originPrice }}</span>
                        </div>
                        <div class="ticket-shop-location">
                            <label>位置：</label>
                            <span>{{ shop.shopAddress }}</span>
                        </div>
                    </div>
                </div>

            {% endfor %}

        {% else %}
            <p>该品牌下没有对应商品</p>
        {% endif %}

    {% endfor %}

{% endblock %}